package com.xy.breakfast.service;

import com.xy.breakfast.entity.Admin;
import com.xy.breakfast.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminService implements AdminMapper {
    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin getById(int id) {
        return null;
    }

    @Override
    public void save(Admin t) {

    }

    @Override
    public void deleteById(int id) {

    }

    @Override
    public void update(Admin t) {

    }

    @Override
    public Admin findByUsername(String username) {
        return adminMapper.findByUsername(username);
    }

    @Override
    public List<Admin> getAll() {
        return null;
    }

    @Override
    public List<Admin> getPage(int start, int end) {
        return null;
    }
}
